#ifndef MYIMAGEPROVIDER_H
#define MYIMAGEPROVIDER_H

#include <QObject>
#include <QQuickImageProvider>
#include <QImage>

class MyImageProvider : public QQuickImageProvider
{
public:
    explicit MyImageProvider(QObject *parent = nullptr);
    static MyImageProvider* getInstance();
    QImage requestImage(const QString &id, QSize *size, const QSize &requestedSize)override;
    QImage m_image;
};

#endif // MYIMAGEPROVIDER_H
